package com.lu.manage.modular.system.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @program LuBoot
 * @description: 部门表
 * @author: showlu
 * @create: 2019-10-17 09:11:00
 */
@Data
@Accessors(chain = true)
@TableName("sys_dept")
public class Dept implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    //父部门id
    @TableField("pid")
    private String pid;
    //父级ids
    @TableField("pids")
    private String pids;
    //层级
    @TableField("level")
    private Integer level;
    //排序
    @TableField("sort")
    private Integer sort;
    //简称
    @TableField("simple_name")
    private String simpleName;
    //全称
    @TableField("full_name")
    private String fullName;
    //描述
    @TableField("description")
    private String description;
    //修改时间
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //修改人
    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE)
    private String updateUser;
    //父部门简称
    @TableField(exist = false)
    private String psimpleName;

}
